# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=esh
pkgver=0.3.0
pkgrel=0
pkgdesc="Simple template system based on shell"
url="https://github.com/jirutka/esh"
arch="noarch"
license="MIT"
makedepends="asciidoctor"
subpackages="$pkgname-doc"
source="https://github.com/jirutka/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="6c1a55a9301af37272223b1155b69000667bb86fb95e5533ee08ecafbaaafb3d93a63e538b8511e33268dfc04a9cbb767308bc5795e019b90c72e8ce687d55b6  esh-0.3.0.tar.gz"
